//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Example #4--Area of circle
// CS 151, 6 Apr 2009
// ECC, Spring 2009
// Niko Culevski
// This program calculates the area of a circle
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import java.io.*;	// Look in this library for definition of classes
//import java.util.Scanner; 
   // Exception, InputStreamReader, and BufferedReader
public class Circle // convert Fahrenheit to Centigrade temperature
{
    public static void main (String args [ ]) throws Exception
	{
        //Scanner Input = new Scanner(System.in);    
        InputStreamReader reader = new InputStreamReader(System.in);
	    BufferedReader input = new BufferedReader(reader);
	    System.out.print("Enter the radius of the circle: ");
            ///*
            // input from console
            final double constant= 2017;
            System.out.print("Finished");
	    String text = input.readLine();
	    Double x = new Double(text); // data type conversion
	    double r = x.doubleValue();  // double is different from Double class
	    //*/
            //double r = Input.nextDouble();
            System.out.print("The area of a circle of radius " + r);
	    double area = Math.PI*r*r;
	    System.out.println(" is " + area);
            System.out.println("CONSTANT " + constant);
	}
}   